package com.xiaoma.singleton;
/**
 * @description  单例-饿汉模式
 * @author wangtianxiang
 * @date: 2021/3/17 14:38
 */
public class HungrySingleton {

    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton(){}

    public static HungrySingleton getInstance(){
        return instance;
    }
}
